﻿
/// <reference path="_namespace.js" />
/// <reference path="EventInfo.js" />

ajax.lang.addNamespace("ajax.data");
ajax.lang.imports("ajax.events.EventInfo");
//-----------------------------------------------------------------------------
ajax.events.EventArgs = function(e, source)
{
    this.source = source;
    this.sender = source; // sender is the same as source.
    this.eventInfo = ajax.lang.safeNew("ajax.events.EventInfo", e);
}
ajax.events.EventArgs.prototype = 
{
    source: null,
    sender: null,
    eventInfo: ajax.events.EventInfo.prototype
}

//-----------------------------------------------------------------------------
ajax.events.EventArgs.prototype.toString = function()
{
    return "ajax.events.EventArgs";
}

//-----------------------------------------------------------------------------
ajax.events.EventArgs.cast = function(obj)
{///<returns type="ajax.events.EventArgs"/>
    return obj;    
}
